package pagerbanner.library.com;

import android.content.Context;
import android.view.animation.Interpolator;
import android.widget.Scroller;

/**
 * author:吴昶
 * 时间: ${data}
 * 简介：
 */
public class BannerScroller extends Scroller {

    private int mDuration=800;

    public BannerScroller(Context context) {
        super(context);
    }

    public BannerScroller(Context context, Interpolator interpolator) {
        super(context, interpolator);
    }

    public BannerScroller(Context context, Interpolator interpolator, boolean flywheel) {
        super(context, interpolator, flywheel);
    }

    @Override
    public void startScroll(int startX, int startY, int dx, int dy, int duration) {
        super.startScroll(startX, startY, dx, dy, mDuration);
    }

    @Override
    public void startScroll(int startX, int startY, int dx, int dy) {
        super.startScroll(startX, startY, dx, dy,mDuration);
    }

    public void setmDuration(int mDuration) {
        this.mDuration = mDuration;
    }
}
